import layout from '../view/layout'
import home from '../view/home'
import set from '../view/set'
import source from '../view/source'
import list from '../view/list'

export interface IRoute {
	path: string
	element: React.FC
	children?: IRoute[]
}


export const childrenRoutes: IRoute[] = [{
	path: '/',
	element: home,
}, {
	path: '/source',
	element: source,
}, {
	path: '/list',
	element: list,
}, {
	path: '/set',
	element: set,
}]


export const routes: IRoute[] = [{
	path: '/',
	element: layout,
	children: childrenRoutes
}]


